#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define endl '\n'
const int N = 15;

int n, m;
int a[N];

int hano3(int n) {
  if (n == 0) return 0;
  return hano3(n - 1) * 2 + 1;
}
int hano4(int n) {
  if (n <= 2) return hano3(n);
  int ans = 1e9;
  rep(i, 1, n - 1) ans = min(ans, hano4(i) * 2 + hano3(n - i));
  return ans;
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  rep(i, 1, 12) cout << hano4(i) << endl;
  return 0;
}